import { axios, PathBuilder, handleStatus } from "@/api/index.js";
const builder = new PathBuilder("init");
const trackBuilder = new PathBuilder("track");

// 获取日志列表
export function getLogList(params) {
  return axios.get(builder.build("log"), params).then(handleStatus);
}

// 获取oaid 对应监测地址
export function getTrackCallback(params) {
  return axios.get(trackBuilder.build("find"), params).then(handleStatus);
}

// 获取平台浏览量
export function getPlatformView(params) {
  return axios.get(builder.build("/log/platform-stats"), params).then(handleStatus);
}